/**
 * ipbes-app中meta除了原生参数外可配置的参数:
 * meta: {
 *  title: { String } 浏览器的title
 * }
 */

export default [
  {
    path: '/login',
    name: 'login',
    meta: {
      title: '登录'
    },
    component: () => import('@/views/login/login.vue')
  },
  {
    path: '/register',
    name: 'register',
    meta: {
      title: '用户注册'
    },
    component: () => import('@/views/register/register.vue')
  },
  {
    path: '/',
    redirect: 'home'
  },
  {
    path: '/home',
    name: 'home',
    meta: {
      title: '首页'
    },
    component: () => import('@/views/home/home.vue')
  },
  {
    path: '/info',
    name: 'info',
    meta: {
      title: '信息'
    },
    component: () => import('@/views/info/info.vue')
  },
  {
    path: '/me',
    name: 'me',
    meta: {
      title: '我的'
    },
    component: () => import('@/views/me/me.vue')
  },
  {
    path: '/setting',
    name: 'setting',
    meta: {
      title: '我的设置'
    },
    component: () => import('@/views/setting/setting.vue')
  },
  {
    path: '/newsDetails',
    name: 'newsDetails',
    meta: {
      title: '热点新闻'
    },
    component: () => import('@/views/newsDetails/newsDetails.vue')
  },
  {
    path: '/ggDetails',
    name: 'ggDetails',
    meta: {
      title: '公告详情'
    },
    component: () => import('@/views/ggDetails/ggDetails.vue')
  },
  {
    path: '/code',
    name: 'code',
    meta: {
      title: '发送验证码'
    },
    component: () => import('@/views/code/code.vue')
  },
  {
    path: '/repass',
    name: 'repass',
    meta: {
      title: '忘记密码'
    },
    component: () => import('@/views/repass/repass.vue')
  },
  {
    path: '/hdDetails',
    name: 'hdDetails',
    meta: {
      title: '活动详情'
    },
    component: () => import('@/views/hdDetails/hdDetails.vue')
  },
  {
    path: '/wxDetails',
    name: 'wxDetails',
    meta: {
      title: '文献资料'
    },
    component: () => import('@/views/wxDetails/wxDetails.vue')
  },
  {
    path: '/psyjDetails',
    name: 'psyjDetails',
    meta: {
      title: '评审意见'
    },
    component: () => import('@/views/psyjDetails/psyjDetails.vue')
  },
  {
    path: '/ndzjDetails',
    name: 'ndzjDetails',
    meta: {
      title: '总结报告'
    },
    component: () => import('@/views/ndzjDetails/ndzjDetails.vue')
  },
  {
    path: '/psyjdet',
    name: 'psyjdet',
    meta: {
      title: '评审意见详情'
    },
    component: () => import('@/views/psyjdet/psyjdet.vue')
  },
  {
    path: '/zjbgdet',
    name: 'zjbgdet',
    meta: {
      title: '总结报告详情'
    },
    component: () => import('@/views/zjbgdet/zjbgdet.vue')
  },
  {
    path: '/up1',
    name: 'up1',
    meta: {
      title: '上传评审意见'
    },
    component: () => import('@/views/up/up1.vue')
  },
  {
    path: '/xieyi1',
    name: 'xieyi1',
    meta: {
      title: '协议1'
    },
    component: () => import('@/views/xieyi/xieyi1.vue')
  },
  {
    path: '/xieyi2',
    name: 'xieyi2',
    meta: {
      title: '协议2'
    },
    component: () => import('@/views/xieyi/xieyi2.vue')
  },
  {
    path: '/about',
    name: 'about',
    meta: {
      title: '关于我们'
    },
    component: () => import('@/views/about/about.vue')
  },
  {
    path: '/upLoad',
    name: 'upLoad',
    meta: {
      title: '关于我们'
    },
    component: () => import('@/views/upLoad/upLoad.vue')
  },
  {
    path: '/shoucang',
    name: 'shoucang',
    meta: {
      title: '我的收藏'
    },
    component: () => import('@/views/shoucang/shoucang.vue')
  },
  {
    path: '/401',
    name: 'error_401',
    meta: {
      title: '暂无权限'
    },
    component: () => import('@/views/error-page/401.vue')
  },
  {
    path: '/500',
    name: 'error_500',
    meta: {
      title: '服务器打盹儿了'
    },
    component: () => import('@/views/error-page/500.vue')
  },
  {
    path: '*',
    name: 'error_404',
    meta: {
      title: '页面走丢了'
    },
    component: () => import('@/views/error-page/404.vue')
  }
]
